<template>
  <zm-checkbox-group v-bind="$attrs" v-on="$listeners">
    <el-checkbox :disabled="hasDisabled(item)" v-for="(item,index) in dataList" :key="index" :label="item[valueKey]+''">
      <slot v-bind="item">
        {{item[labelName]}}
      </slot>
    </el-checkbox>
  </zm-checkbox-group>
</template>

<script>
import commonData from '../mixin/commonData'
export default {
  name: 'ZmDataCheckbox',
  mixins: [commonData]
}

</script>
